"""
元素的操作：涉及到js
1.点击 click
3.清空 clear
2.输入 seed_keys 有输入框
"""
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
# 1.创建浏览器驱动对象

driver=webdriver.Chrome()

# 2.通过get方法获取网页
driver.get("http://localhost:8081/regA.html")
# ele=driver.find_element(By.XPATH,"html/body/div/fieldset/form/p/input")
ele=driver.find_element(By.XPATH,"//input[@name='upfilea']")
# ele.send_keys("admin")
ele.click()
time.sleep(5)
ele.clear()
# 4.关闭浏览器对象
driver.quit()











































